from Modules.mod_psql import PSQLDB


class CreateDB:
    def __int__(self): ...

    def create_schema(self, name_schema: str):
        sql: str = f"CREATE SCHEMA {name_schema}"
        PSQLDB().create_tables(sql)

    def create_table(self, path_sql: str):
        with open(path_sql) as f_o:
            PSQLDB().create_tables(f_o.read())
